<?php
/**
 * Created by PhpStorm.
 * User: 式神 (luck48.com)
 * Email: 289650682@qq.com
 * Name: ${NAME}Administrator
 * Date: 2017-03-10
 * Time: 14:54
 */
use Illuminate\Database\Seeder;
use Illuminate\Filesystem\Filesystem;
class RbacSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $fileSystem = new Filesystem();
        $database = $fileSystem->get(base_path('database/seeds') . '/' . 'rbac.sql');
        DB::connection()->getPdo()->exec($database);
    }
}